package com.probox.common.core.constant;

/**
 * 通用常量信息
 *
 * @author usoft
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "probox_captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌有效期（分钟），默认12小时有效
     */
    public final static long TOKEN_EXPIRE = 720*2*30*12;

    /**
     * 令牌有效期（分钟），默认1个月有效
     */
    public final static long CUSTOMER_TOKEN_EXPIRE = 720*2*30*12;

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "probox_sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "probox_sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    //是否执行定时任务
    public static boolean EXE_QUARTZ = true;

    /**
     * 平台默认ID
     */
    public static final Long DEFAULT_PLATFORM_ID = 1l;

    /**
     * 默认店铺ID，代表是集团
     */
    public static final Long DEFAULT_STORE_ID = 0l;

    //退款手续费,默认千六
    public static final double SERVICE_CHARGE = 0.006;

    //C端小程序appID
    public static final String customer_app_id = "wx01eb8ea7df1468fd";
    //C端小程序app secret
    public static final String customer_app_secret = "59598d4bdf472e09833ef70f3f68e271";

    //B端(企微端)小程序appID
    public static final String business_app_id = "wx549c1cd8f6eac77e";
    //B端(企微端)小程序app secret
    public static final String business_app_secret = "a235629e70e26097b4439cde1dd9c29d";

    //公众号appID
    public static final String gzh_app_id = "wx865be3ae67da2c87";
    //公众号 secret
    public static final String gzh_app_secret = "36c6c03fc3b9546e20eaedf36b9b27fb";

    public static final String WEBP = "@probox";

    //分润比例
    public static final Long SHARE_PROFIT_RATE = 3000l;



    //经验和支付金额比例
    public static final Long PROFIT_RATE = 1L;

    public static final boolean exeQuartz = true;

}
